package saint.bicyletracker.UI;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.view.View;

public class RoundRectange extends View {
	
	RectF mBounds;
	
	public RoundRectange(Context context) {
		super(context);
		mBounds = new RectF();
	}
	
	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		Paint recPaint = new Paint();
		recPaint.setColor(Color.GRAY);
		recPaint.setAlpha(50);
		canvas.drawRoundRect(mBounds, 20, 20, recPaint);
		
	}
	
	@Override
	protected void onSizeChanged(int w, int h, int oldh, int oldw) {
		mBounds.set(0, 0, w, h);
	}

}
